package com.parking.order.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 物业回复评论Dto
 * */
@Data
public class ReplyCommentDto {
    /**
     * 订单评论Id
     * */
    private Integer commentId;
    /**
     * 订单编号
     * */
    private String orderInfoNum;
    /**
     * 评论内容
     * */
    private String commentInfo;
    /**
     * 评论分数 "GOOD" "OK" "BAD"
     * */
    private String commentScore;
    /**
     * 评论时间
     * */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime commentTime;
    /**
     * 回复内容
     * */
    private String replyInfo;
    /**
     * 回复时间
     * */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime replyTime;
    /**
     * 用户信息Id
     * */
    private Integer userInfoId;
    /**
     * 用户姓名
     * */
    private String userInfoName;
    /**
     * 用户电话
     * */
    private String userInfoTel;

    /**
     * commentId    评论Id
     * orderInfoNum 订单编号
     * commentInfo   评论信息
     * commentScore  评论分数
     * commentTime   评论时间
     * replyInfo     回复信息
     * replyTime     回复时间
     * userInfoId    用户信息Id
     * userInfoName  用户名称
     * */
    public ReplyCommentDto(Integer commentId, String orderInfoNum, String commentInfo, String commentScore, LocalDateTime commentTime, String replyInfo, LocalDateTime replyTime, Integer userInfoId, String userInfoName, String userInfoTel) {
        this.commentId = commentId;
        this.orderInfoNum = orderInfoNum;
        this.commentInfo = commentInfo;
        this.commentScore = commentScore;
        this.commentTime = commentTime;
        this.replyInfo = replyInfo;
        this.replyTime = replyTime;
        this.userInfoId = userInfoId;
        this.userInfoName = userInfoName;
        this.userInfoTel = userInfoTel;
    }
}
